package com.lizhi.yun.db.rsz.dao;

import com.lizhi.mybatis.interceptor.PageBounds;
import com.lizhi.yun.db.rsz.entity.RszPrescriptionItemEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface RszPrescriptionItemDao{

	public int insertRecord(RszPrescriptionItemEntity record);//添加一条完整记录

	public int deleteById(@Param("lid") String lid);//通过Id(主键)删除一条记录

	public int updateByIdSelective(RszPrescriptionItemEntity record);//按Id(主键)修改指定列的值

	public RszPrescriptionItemEntity selectById(@Param("lid") String lid);//通过Id(主键)查询一条记录

	public List<RszPrescriptionItemEntity> selectByMap(Map<String, Object> paramMap, PageBounds pageBounds);//根据条件查询

	public RszPrescriptionItemEntity selectByTraId(@Param("traId") String traId, @Param("preId") String preId);

	public int deleteByPreId(@Param("preId") String preId, @Param("hospitalId") String hospitalId, @Param("hospitalSystemId") String hospitalSystemId);


}